package cn.springcloud.alibaba.gateway;

import cn.springcloud.alibaba.feign.rule.GrayRuleConfig;
import cn.springcloud.alibaba.gateway.config.SysParameterConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;

/**
 * 获取网关配置：http://localhost:9999/actuator/gateway/routes
 */
@RibbonClients(value = {
	//只对ums服务进行灰度发布
	@RibbonClient(value = "springcloud-alibaba-ums", configuration = GrayRuleConfig.class)
})
@SpringCloudApplication
@EnableConfigurationProperties(value = {SysParameterConfig.class})
public class GatewayApplication {
	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}
}
